<fieldset>
	<legend>Danh sách đang chọn sử dụng</legend>
	<table width="100%" cellpadding="0" cellspacing="0" class="sf_admin_list">
		<tr>
			<th>ID</th>
			<th>Tên bài</th>
			<th>Thể hiện</th>
			<th>Chi tiết</th>
			<th width="15">Sắp xếp</th>
			<th>Background</th>
			<th>Xóa</th>
		</tr>
		<?php $i=0; foreach($listxml as $item){?>
		<tr class="sf_admin_row_<?php echo $i%2 ?>">
			<td><?php echo $item->getRingtoneid()?></td>
			<td><?php echo $item->getName()?></td>
			<td><?php echo $item->getSinger()?></td>
			<td><a href="<?php echo $item->getUrl()?>" target="_blank">Xem</a> </td>
			<td><input type="text" name="order[<?php echo $item->getRingtoneid()?>]" value="<?php echo $item->getordering()?>" style="width: 20px"> </td>
			<td>
			 <a class="thickbox" href="<?php echo url_for('ringtone_xml/upload?id=' . $item->getRingtoneid())?>?keepThis=true&TB_iframe=true&height=300&width=350" title="Upload ảnh">
					<?php 
						if($item->getBackground())
							echo 'Thay ảnh khác';
						else
							echo 'Upload mới'
					?>
				</a>
			</td>
			<td><a href="javascript:delrecord('<?php echo $item->getRingtoneid()?>')">Xóa</a></td>
		</tr>
		<?php $i++;}?>
	</table>
</fieldset>